package com.example.hospitaldemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 科室表
 * </p>
 *
 * @author 张三
 * @since 2024-12-16
 */
@Getter
@Setter
public class Ward implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 科室编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 科室名称
     */
    private String name;

    /**
     * 关联床位
     */
    @TableField(exist = false)
    private List<Zhiliaoshi> zhiliaoshiList;
}
